import request from "../../request.js";

//获取商家列表信息
export const getShopList = (params)=>{
	return request.get('/app/merchant/list',params)
} 
//获取商家详细信息
export const getShopDetails = (id)=>{
	return request.get(`/app/merchant/get/${id}`)
} 
//修改商家列表
export const putShopList = (params)=>{
	return request.put('/app/merchant/update',params)
}
//获取当前登录的商家信息
export const getUserShopDetails = ()=>{
	return request.get('/app/merchant/getLoginMerchantInfo')
}
//获取可以下单的商家
export const getPlaceShopList = (params)=>{
	return request.get('/app/merchant/order/list',params)
}
//商家入驻
 export const shopMerchant = (params)=>{
 	return request.post('/app/merchant',params)
 }